<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_small_order_item.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/mall_camp_live.js'
import ViewGrid from '@/components/basic/viewT.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '营地直播',
        name: 'mall_camp_live',
        url: '/mall_camp_live/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { campsiteId: '', campsitePhaseId: '' },
      searchFormOptions: [
        [
          { title: '营地名称', field: 'campsiteId', type: 'select', dataKey: 'campsite', data: [] },
          { dataKey: '', data: [], title: '营期名称', field: 'campsitePhaseId', type: 'select' },
        ],
      ],
      columns: [
        { field: 'campsiteId', title: '营地名称', type: 'int', bind: { key: 'campsite', data: [] }, width: 100, align: 'left' },
        { field: 'campsitePhaseId', title: '营期名称', type: 'int', bind: { key: '', data: [] }, width: 100, align: 'left' },
        //   {field:'campsitePhaseId',title:'营期id',type:'string',width:220,align:'left'},
        { field: 'roomname', title: '房间名字', type: 'string', width: 120, align: 'left' },
        { field: 'coverImg', title: '直播背景图', type: '营地动态', width: 120, align: 'left' },
        { field: 'startTimeDate', title: '直播开始时间', type: 'string', width: 200, align: 'left', sortable: true },
        { field: 'endTimeDate', title: '直播结束时间', type: 'string', width: 220, align: 'left' },
        { field: 'anchorName', title: '主播昵称', type: 'string', width: 120, align: 'left' },
        { field: 'anchorWechat', title: '主播微信号', type: 'string', width: 120, align: 'left' },
        { field: 'subAnchorWechat', title: '主播副号微信号', type: 'string', width: 120, align: 'left' },
        { field: 'createrWechat', title: '创建者微信号', type: 'string', width: 120, align: 'left' },
        //   {field:'liveurl',title:'直播间url',type:'string',width:120,align:'left'},
        //   {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
        //   {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left'},
        //   {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left'},
        //   {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
